package com.binguo.helper;

import java.io.File;
import java.io.IOException;

/**
 * @author yuritian
 * @Title: TXTHelper
 * @ProjectName binguoDevelop
 * @Description: TODO
 * @date 2019-07-1015:20
 */
public class TXTHelper {

    public static String creatTxtFile(String path ,String name){

        String filenameTemp = path + name + ".txt";

        File filename = new File(filenameTemp);
        if (!filename.exists()) {
            try {
                filename.createNewFile();
            } catch (IOException e) {
                return "failed";
            }
        }
        return filenameTemp ;
    }
}
